package com.nnxy.mapper;

import com.github.pagehelper.Page;
import com.nnxy.pojo.Emp;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDate;
import java.util.List;

@Mapper
public interface EmpMapper {
    Page<Emp> findByPage(String name, Integer gender, LocalDate begin, LocalDate end);

    /**
     * 新增员工
     * @param emp
     */
    void insert(Emp emp);


    void batchDeleteByIds(List<Integer> ids);

    void update(Emp emp);

    Emp findById(Integer id);
}
